package com.blog.backend.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.lang.NonNull;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author fanggongsai
 * @description
 * @Date 2021-07-17
 */

@Setter
@Getter
public class InsertArticleReq implements Serializable {

    private static final long serialVersionUID = -8765189625326771834L;

    @ApiModelProperty("文章标题")
    @NotBlank(message = "文章标题不能为空")
    private String articleName;

    @ApiModelProperty("所属板块")
    private String plateId;

    @ApiModelProperty("文章内容")
    private String articleContent;

    @ApiModelProperty("标签字符串")
    private String label;

    @ApiModelProperty("宣传图")
    private String image;

    private String articleDescription;

    private Integer status;
}
